package com.cryptoneedle.center.source.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.bubbles.engine.data.core.repository.BaseRepository;
import com.bubbles.engine.data.core.service.BaseService;
import com.cryptoneedle.center.source.entity.ConfigSystem;
import com.cryptoneedle.center.source.repository.ConfigSystemRepository;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>description: 配置系统 </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-25
 */
@Service
@DS("pg")
@Slf4j
public class ConfigSystemService extends BaseService<ConfigSystem, String> {

    @Resource
    private ConfigSystemRepository configSystemRepository;


    @Override
    public BaseRepository<ConfigSystem, String> getRepository() {
        return this.configSystemRepository;
    }

    public List<ConfigSystem> list() {
        return configSystemRepository.list();
    }
}